public class BronKerboschHandler
extends java.lang.Object
| Constructor and Description |
|---|
BronKerboschHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bronKerbosch(java.util.ArrayList<Graph> results,
Graph r,
Graph p,
Graph x)
Recursive helper method to do the above.
|
static java.util.ArrayList<Graph> |
bronKerbosch(Graph graph)
Given a graph, finds all complete subgraphs.
|
static java.util.ArrayList<Graph> |
bronKerboschBipartite(Graph graph)
Bipartite Bron Kerbosch algorithm that usees the above to find all complete bipartite graphs
within a bipartite graph.
|
static Graph |
maximumCompleteClique(Graph graph)
Given a graph, finds all complete subgraphs, and then returns the largest one.
|
public static Graph maximumCompleteClique(Graph graph)
graph - the graphpublic static java.util.ArrayList<Graph> bronKerbosch(Graph graph)
graph - the graphpublic static void bronKerbosch(java.util.ArrayList<Graph> results, Graph r, Graph p, Graph x)
results - result list. Passed between recursive calls to create outputr - graph r in wikipedia linkp - graph p in wikipedia linkx - graph x in wikipedia linkpublic static java.util.ArrayList<Graph> bronKerboschBipartite(Graph graph)
graph - the bipartite graph